package com.dolphin.fly.web.system;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.dolphin.fly.domain.entity.system.User;
import com.dolphin.fly.service.system.UserService;

@Controller
public class TestController
{
    @Autowired
    private UserService userService;
    
    @RequestMapping("d")
    public String ss()
    {
        System.out.println(userService.findById(1L).toString());
        User user = new User();
        user.setLoginName("eded");
        user.setEmail("kk@dd.com");
        user.setUserName("dddd");
        userService.save(user);
        return "ddd";
    }
}
